﻿<%@ Page Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="KPIS.GERP.GAMS.APP.App_UI.Forms.Login" %>

<asp:Content ID="Content2" runat="server" 
    ContentPlaceHolderID="head">
    
    <title>ยินดีต้อนรับสู่ระบบ G-ERP</title>
    <link href="../CssClass.css" rel="stylesheet" type="text/css" />

</asp:Content>

<asp:Content ID="Content1" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">
    <telerik:RadCodeBlock ID="RadCodeBlockMaster" runat="server">
        <script type="text/javascript">
            function GetHeight() {
                var myHeight = 0;
                if (typeof (window.innerWidth) == 'number') {
                    //Non-IE
                    myHeight = window.innerHeight;
                }
                else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
                    //IE 6+ in 'standards compliant mode'
                    myHeight = document.documentElement.clientHeight;
                }
                else if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
                    //IE 4 compatible
                    myHeight = document.body.clientHeight;
                }

                document.getElementById('<%=hHeight.ClientID %>').value = myHeight;
            }
        </script>
    </telerik:RadCodeBlock>
    <asp:HiddenField id="hHeight" runat="server" />
    <div style="padding: 100px 0px 0px 0px;">
        <table>
            <tr>
                <td align="center" width="1000px">
                    <table width="400px" style="text-align: left">
                        <tr>
                            <td bgcolor="#647B8F"
                                style="color: #FFFFFF; font-weight: bold; font-size: x-large; font-family: 'Times New Roman', Times, serif;"
                                height="40px">
                                &nbsp;&nbsp;Login
                            </td>
                                <%--style="color: #FFFFFF; font-weight: bold; font-size: x-large; font-family: 'Times New Roman', Times, serif; background-image: url('../Images/PageViews/LoginBG.png');" --%>
                        </tr>
                        <tr>
                            <td height="20px">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table>
                                    <tr>
                                        <td align="right" style="font-weight: bold; color: #647B8F;" width="150px">
                                            รหัสประจำตัว :</td>
                                        <td align="left">
                                            <telerik:RadTextBox ID="txtUserID" Runat="server" width="150px">
                                            </telerik:RadTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" style="font-weight: bold; color: #647B8F;" >
                                            รหัสผ่าน :</td>
                                        <td align="left">
                                            <telerik:RadTextBox ID="txtPassword" Runat="server" TextMode="Password" width="150px">
                                            </telerik:RadTextBox>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td height="20px" align="center">
                                <asp:Label ID="lblError" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <asp:Button ID="cmdLogin" runat="server" OnClientClick="GetHeight()"
                                    Text="เข้าสู่ระบบ" Width="100" onclick="cmdLogin_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td height="20px">
                            </td>
                        </tr>
                        <tr>
                            <td height="40px" bgcolor="#647B8F"><%--style="color: #FFFFFF; font-weight: bold; font-size: x-large; font-family: 'Times New Roman', Times, serif; background-image: url('../Images/PageViews/LoginBG.png');"--%>
                            </td>
                        </tr>
                    </table>
                    <%--<asp:Panel ID="Panel2" runat="server">
                        <table>
                            <tr>
                                <td style="font-weight: bold; color: #FF0000">
                                    ช่วงทดสอบระบบ สามารถเข้าระบบได้ทันทีไม่ต้องใส่ [รหัสประจำตัว] และ [รหัสผ่าน]
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>--%>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>